import Layout from '../layout/Layout.vue'
import './lib/repeatRoute'
import route from './lib/menuTransformRoute'
import staticRouter from './staticRouter'
const routes = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    redirect: '/about',
    children: [
      ...route,
      ...staticRouter
    ]

  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/error/404.vue')
  },
  {
    path: '*',
    redirect: '/404',
    meta: {}
  }
]
export default routes
